package com.site.wisdom_construction.service.scheduleModule;

import com.site.wisdom_construction.dao.scheduleModule.ProductionRecordsDao;
import com.site.wisdom_construction.entity.scheduleModule.ProductionRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/16
 * @Description
 */
@Service
public class ProductionRecordsService implements ProductionRecordsDao {
    @Autowired
    private ProductionRecordsDao productionRecordsDao;

    @Override
    public int insertProductionRecords(Map map) {
        return productionRecordsDao.insertProductionRecords(map);
    }

    @Override
    public int deleteProductionRecords(Map map) {
        return productionRecordsDao.deleteProductionRecords(map);
    }

    @Override
    public int updateProductionRecords(Map map) {
        return productionRecordsDao.updateProductionRecords(map);
    }

    @Override
    public List<ProductionRecords> findProductionRecordsByPage(Map map) {
        return productionRecordsDao.findProductionRecordsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return productionRecordsDao.Total(map);
    }

    @Override
    public Double SumProductionRecordsMonth(Map map) {
        return productionRecordsDao.SumProductionRecordsMonth(map);
    }

    @Override
    public Double SumProductionRecordsQuarter(Map map) {
        return productionRecordsDao.SumProductionRecordsQuarter(map);
    }

    @Override
    public Double SumProductionRecordsAll(Map map) {
        return productionRecordsDao.SumProductionRecordsAll(map);
    }

    @Override
    public List<ProductionRecords> selectProductionRecords(Map map) {
        return productionRecordsDao.selectProductionRecords(map);
    }
}
